package cn.com.dycc.party_work.apply.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import cn.com.dycc.party_work.apply.entity.Apply;
import cn.com.dycc.party_work.apply.entity.UserAndApply;
import cn.com.dycc.party_work.apply.param.ApplyParam;
import cn.com.dycc.party_work.apply.param.FindApplyParam;

/**
 * 
 * Description: 入党申请业务层
 * Author: Liket
 * Version: 1.0
 * Create Date Time: 2018年6月20日 下午2:37:34.
 * Update Date Time: 
 * @see
 */
public interface ApplyService {
	/*
	 * 添加入党申请
	 */
	
	int addApply(ApplyParam apply,HttpServletRequest req)throws ApplyNotFoundException;
	
	int deleteApply(String apply_id,HttpServletRequest req)throws ApplyNotFoundException;
	
	int deleteAllApply(String apply_ids[],HttpServletRequest req)throws ApplyNotFoundException;
	
	int updateApply(ApplyParam apply,HttpServletRequest req)throws ApplyNotFoundException;
	
	Apply findApply(String apply_id,HttpServletRequest req)throws ApplyNotFoundException;
	
	UserAndApply findApplyById(String apply_id,HttpServletRequest req)throws ApplyNotFoundException;

	String findApplyCount(FindApplyParam param,HttpServletRequest req)throws ApplyNotFoundException;
	
	List<UserAndApply> findAllApply(FindApplyParam param,HttpServletRequest req)throws ApplyNotFoundException;
}
